<?php

Yii::import('application.models._base.BaseStudentCourseDetails');

class StudentCourseDetails extends BaseStudentCourseDetails
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
          public function rules() {
		return array(
			array('name_course, enrolment_number, no_student_class,year_of_study, course_type_id', 'required'),
			array('no_student_class, course_type_id', 'numerical', 'integerOnly'=>true),
			array('name_course, enrolment_number, year_of_study', 'length', 'max'=>45),
			array('student_details_id', 'length', 'max'=>20),
			array('year_of_study', 'default', 'setOnEmpty' => true, 'value' => null),
			array('id, name_course, enrolment_number, no_student_class, year_of_study, course_type_id, student_details_id', 'safe', 'on'=>'search'),
		);
	}
}